package com.xinqi.modules.chat.chat.group.dto.req;

import com.xinqi.common.green.annotation.Text;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @version V1.0
 * @Title: 管理端创建群
 * @ClassName: com.xinqi.modules.chat.chat.group.dto.req.ChatGroupAdminCreateDTO.java
 * @Description:
 * @Copyright 星齐科技（云南）有限公司 - Powered By 技术部
 * @author: yyzhen
 * @date: 2023/8/22 10:11
 */
@Data
@Schema(description = "管理端创建群")
public class ChatGroupAdminCreateDTO implements Serializable {

    @Text
    @NotEmpty(message = "{chat.group.groupName.not.blank}")
    @Size(min = 0, max = 15, message = "{chat.group.groupRename.length.valid}")
    @Schema(description = "群聊名称")
    private String groupName;

    @Schema(description = "备注")
    @Size(min = 0, max = 300, message = "{chat.group.remark.length.valid}")
    private String remark;

}
